# $Id: PKGBUILD 64936 2012-02-18 21:32:21Z jelle $
# Contributor: Vesa Kaihlavirta <vegai@iki.fi>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=openttd-opensfx
pkgver=0.2.3
pkgrel=4
pkgdesc="Free sound set for openttd"
arch=('any')
url="http://www.openttd.org"
license=('custom:CCSP')
source=(http://bundles.openttdcoop.org/opensfx/releases/opensfx-${pkgver}.zip)
md5sums=('3605b82f24153500c8a1804e4420168a')

build() {
	cd ${srcdir}/opensfx-${pkgver}

	chmod 0644 *
}

package() {
	cd ${srcdir}/opensfx-${pkgver}

	mkdir -pm0755 ${pkgdir}/usr/share/openttd/data   
	cp opensfx.* ${pkgdir}/usr/share/openttd/data/
	install -Dm644 license.txt ${pkgdir}/usr/share/licenses/${pkgname}/license
	install -Dm644 readme.txt ${pkgdir}/usr/share/licenses/${pkgname}/readme
}
